<%--
  Created by IntelliJ IDEA.
  User: 10352
  Date: 2022/11/9
  Time: 9:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/layui/css/layui.css"   media="all">
</head>
<style>
    div{
        width: 200px;
    }
</style>
<body>

<form action="add" method="post" enctype="multipart/form-data">
    账号：<input type="text" name="account"><span style="color: red">${accountError}</span><br>
    真实姓名：<input type="text" name="realName"><span style="color: red">${realNameError}</span><br>
    密码：<input type="text" name="password"><span style="color: red">${passwordError}</span><br>
    性别： <input type="radio" name="sex" value="1" checked>女
    <input type="radio" name="sex" value="2"> 男<br>
    <div>出生日期：<input name="birthday" type="text" class="layui-input" id="test1" placeholder="yyyy-MM-dd"></div><span style="color: red">${birthdayError}</span><br>
    电话：<input type="text" name="phone"><span style="color: red">${phoneError}</span><br>
    地址：<input type="text" name="address"><span style="color: red">${addressError}</span><br>
    角色：
    <select name="roleId">
        <option value="1">管理系统员</option>
        <option value="2">店长</option>
        <option value="3">店员</option>
    </select><br>
    照片：<input type="file" name="pic"><br>
    <input type="submit">
</form>
<script src="${pageContext.request.contextPath}/statics/layui/layui.js" charset="utf-8"  type="text/javascript"></script>
<script type="text/javascript">
    layui.use('laydate', function() {
        var laydate = layui.laydate;

        //常规用法
        laydate.render({
            elem: '#test1'
        });
    });
</script>
</body>
</html>
